<?php
//项目入口文件
// include $_SERVER['DOCUMENT_ROOT'].'/vendor/autoload.php';
include "../../autoload.php";
use \Sonkwl\UsePHP\autoroute;
use \Sonkwl\UsePHP\jwt;
use \Sonkwl\UsePHP\mysqler;
use \Sonkwl\UsePHP\autocontrol;

mysqler::SetPDO('mysql:dbname=test;host=localhost');
mysqler::SetUser('root');
mysqler::SetPWD('root');

jwt::SetVersion('V1');
jwt::SetKeyInt('1');
jwt::SetKeyStr('WHSS');
jwt::SetExp(strtotime("+8 hours",time()));

autoroute::ValidateRequest();
autoroute::Run();
?>
